<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
<meta charset="UTF-8">
<title>学生信息列表</title>
<style type="text/css">
table {
	border-collapse: collapse;
}

table, th, td {
	border: 1px solid gray;
	padding: 5px;
}
</style>
</head>
<body>
	<div>
		<h3 align="center">
			学生信息列表 &nbsp;&nbsp;&nbsp;&nbsp; <a style="font-size: 12px;"
				href="../student?action=insert">新增</a>
		</h3>
	</div>
	<table align="center" border="1">
		<thead>
			<tr>
				<th>学号</th>
				<th>姓名</th>
				<th>年龄</th>
				<th>班级</th>
				<th>成绩</th>
				<th>相片</th>
				<th>修改</th>
				<th>删除</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach var="s" items="${stus}">
				<tr>
					<td align="center">${s.id}</td>
					<td align="center">${s.name}</td>
					<td align="center">${s.age}</td>
					<td align="center">${s.grade}</td>
					<td align="center">${s.score}</td>
					<td align="center"><img alt="" height="30" width="30" src="${s.photo}"></td>
					<td align="center"><a href="../student?action=update&id=${s.id}">修改</a></td>
					<td align="center"><a href="../student?action=delete&id=${s.id}">删除</a></td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
</body>
</html>